package com.ssyt.ssh.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.ssh.sys.dao.BlogUserDao;
import com.ssyt.ssh.sys.entity.BlogUser;
import com.ssyt.ssh.sys.service.BlogUserService;

@Service
public class BlogUserServiceImpl implements BlogUserService {
	
	@Autowired
	private BlogUserDao userDao;
	
	@Override
	public BlogUser doLogin(String code, String password) {
		return  userDao.login(code, password);
	}

	@Override
	public void add(BlogUser blogUser) {
		userDao.add(blogUser);
	}

	@Override
	public List<BlogUser> listUser() {
		return userDao.listUser();
	}

}
